﻿#ifndef SYSTEMSETTING_2_H
#define SYSTEMSETTING_2_H

#include <QWidget>
#include "Global.h"
#include <QTimer>
#include <QPushButton>
#include <QLineEdit>
#include <QNetworkInterface>
#include "ini/inifile.h"

namespace Ui {
class Systemsetting_2;
}

class Systemsetting_2 : public QWidget
{
    Q_OBJECT
    
public:
    QLabel* time;
    QLabel* signal;
    void keyHandle(QPushButton* btn, QLineEdit* lineEdit);
    explicit Systemsetting_2(QWidget *parent = 0);
    ~Systemsetting_2();
public slots:
    void on_Keyboard_clicked();

private slots:
    void show_net_info(int current);
    void on_buttonBack_clicked();
    void on_buttonPrev_clicked();
    void on_buttonNext_clicked();
    void on_buttonSave_clicked();
    void EN_released_slot();
    void EN_pressed_slot();
    void catchpos();
    void catchpos_();
    void on_buttonBoardswitch_clicked();
    void on_Char3_2_clicked();
    void on_Char1_2_clicked();
    void on_Char2_2_clicked();
    void on_RemoveAll_2_clicked();
    void on_Remove_2_clicked();

private:
    void keyBoardConnect();
    void ENkey_board_released();
    void showDNS();

    QStringList DNSlist;
    QNetworkInterface interface;
    QStandardItemModel* devNetinfoModel;
    QDataWidgetMapper* devNetmapper;
    QModelIndex index;
    QPushButton* btn;
//    QTimer* catchmouse;
    QTimer* catchmouse_;
    QString released_text;
    QPoint coursePoint;

    Ui::Systemsetting_2 *ui;
};

#endif // SYSTEMSETTING_2_H
